﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master.Master" AutoEventWireup="true" CodeBehind="SheZhiFenShuXian.aspx.cs" Inherits="zjbks.SheZhiFenShuXian" %>

<asp:Content ID="Content1" ContentPlaceHolderID="content" runat="server">
    <asp:GridView ID="GridView2" runat="server" PageSize="15" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="SubjectNo" DataSourceID="SqlDataSource2" ForeColor="Black" GridLines="Vertical" AllowPaging="True">
        <AlternatingRowStyle BackColor="White" />
        <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="首页" LastPageText="末页" PreviousPageText="上一页" NextPageText="下一页" />
        <Columns>
            <asp:BoundField DataField="SubjectNo" HeaderText="科目编号" ReadOnly="True" SortExpression="SubjectNo" />
            <asp:BoundField DataField="SubjectName" HeaderText="科目名称" SortExpression="SubjectName" />
            <asp:BoundField DataField="KC" HeaderText="考场地点" SortExpression="KC" />
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:zjbksConnectionString %>" SelectCommand="SELECT [KC], [SubjectNo], [SubjectName] FROM [SubjectInfo]"></asp:SqlDataSource>
    <asp:FileUpload ID="FileUpload2" runat="server" /><asp:Button ID="Button2" runat="server" Text="添加" OnClick="Button2_Click" />
    <hr />
    <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1" DataKeyNames="SubjectName" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black" GridLines="Vertical" Height="174px" Width="597px" AllowPaging="True" AllowSorting="True" PageSize="15">

        <AlternatingRowStyle BackColor="White" />
        <PagerSettings Mode="NextPreviousFirstLast" FirstPageText="首页" LastPageText="末页" PreviousPageText="上一页" NextPageText="下一页" />
        <Columns>
            <asp:BoundField DataField="SubjectNo" HeaderText="科目编号" ReadOnly="True" />
            <asp:BoundField DataField="SubjectName" HeaderText="科目" />
            <asp:BoundField DataField="Score" HeaderText="分数线" />
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>
    <table>
        <tr>
            <td><asp:FileUpload ID="FileUpload1" runat="server" /></td>
            <td><asp:Button ID="Button1" runat="server" Text="添加" OnClick="Button1_Click" /></td>
        </tr>
    </table>    

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:zjbksConnectionString %>" SelectCommand="SELECT * FROM [SubjectInfo]"></asp:SqlDataSource>

</asp:Content>
